package example.service;

import com.github.pagehelper.PageInfo;
import example.entity.Goods;

import java.util.ArrayList;

public interface GoodsService {
  ArrayList<Goods> queryAll();

  PageInfo<Goods> queryAll(Integer pageNum, Integer pageSize);

  int deleteById(Integer id);

  Goods findById(Integer id);

  int update(Goods goods);

  int insert(Goods goods);
}




